{assign var='level_span' value=str_repeat($span, $level)}
{foreach from=$nodes[$parent] item=n}
{assign var='turl' value=$parentUrl|cat:$n->url}
<tr>
	<td>{$level_span}{$n->name}</td>
	<td>{$level}</td>
	<td>{$n->id}</td>
	<td>{$turl}</td>
	<td>{$n->type}</td>
	<td>{$n->highlight}</td>
	<td>{$n->target}</td>
	<td>{if $n->rightView->has() and $n->rightAccess->has()}<a href="{url p=$turl}">view</a>{/if}</td>
	<td>{if $n->rightEdit->has()}<a href="{url a=navigation_edit navigation_id=$n->id}">edit</a>{/if}</td>
	<td>{if $n->rightEdit->has()}<a href="{url a=navigation_new navigation_parent=$n->id}">new</a>{/if}</td>
	<td>{if $n->rightEdit->has()}<a href="{url a=navigation_remove navigation_id=$n->id}">remove</a>{/if}</td>
</tr>
{if isset($nodes[$n->id])}
{include file='navigationAdmin.rekursive.tpl' parent=$n->id level=$level+1 parentUrl=$turl|cat:'/'}
{/if}
{/foreach}